<extend name="Public/base" />

<block name="wrapper">
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-heading"><h3>城市管理</h3></div>

				<!-- /.panel-heading -->
				<div class="panel-body">
					<div class="dataTable_wrapper">

					<form action="">
					<input type="text" name='letter' value="" placeholder="请输入排序号">
					<input type="text" name="name" value=""  placeholder="请输入城市名">
					
					<button >搜索</button>
											
					</form><br>

						<table class="table table-striped table-bordered table-hover" id="dataTables-example">
							<thead>
								<tr>
									<th>id</th>
									<th>排序</th>
									<th>城市</th>
									<th>热门</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>

								<foreach name="result" item="vo">
									<tr>
										<td>{$vo['id']}</td>
										<td>{$vo['letter']}</td>
										<td>{$vo['name']}</td>
										<td>{$vo['hot']}</td>
										<td>{$vo['status']}</td>
										<td>
                                            <a href="{:U('City/add')}">添加城市</a>
											|
											<a href="{:U('City/find',['id'=>$vo['id']])}">修改</a> |
											<!-- 必须通知一下对应的控制器方法是否可以做删除 -->
											<a href="{:U('City/destroy', ['id'=>$vo['id']])}">禁用</a> |
											<a href="{:U('City/qi', ['id'=>$vo['id']])}">启用</a> |
											<a href="{:U('City/re', ['id'=>$vo['id']])}">热门</a> |
											<a href="{:U('City/pu', ['id'=>$vo['id']])}">普通</a>
										

										</td>
									</tr>

								</foreach>
								  <tr class="gradeA">
                                    <td colspan="6" align="center"> {$show} </td>

                                </tr>
							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
				<!-- /.panel-body -->
			</div>
			<!-- /.panel -->
		</div>
		<!-- /.col-lg-12 -->
	</div>

</block>